package com.bb.blog.security.resource;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(contextId = "auth-server.opaque", name = "auth-server", fallbackFactory = OpaqueIntrospectorClientFallbackFactory.class)
public interface OpaqueIntrospectorClient {

    /**
     * @return
     */
    @PostMapping("/introspect")
    JSONObject introspect(@RequestParam("token") String token);
}
